var mongoose = require('../db')

var Schema = mongoose.Schema

var followSchema = new Schema({
    created_time: {
        type: Date,
        default: Date.now
    },
    uId: { // 被关注用户id
        type: Schema.Types.ObjectId,
        required: true
    },
    aId: { // 关注作者
        type: Schema.Types.ObjectId,
        required: true
    }
})

module.exports = mongoose.model('Follow', followSchema)